﻿
namespace SistemaLogistica.DataAccess
{
    using System;
    using System.Configuration;
    using Microsoft.Practices.EnterpriseLibrary.Data;
    using SistemaLogistica.Business.Entities;

    public class BaseDataAccess
    {
        protected String ConnectionString
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["SistemaLogisticaConnectionString"].ConnectionString;
            }
        }

        protected Database db { get; set; }

        public BaseDataAccess()
        {
            db = DatabaseFactory.CreateDatabase();
        }
    }
}
